
import type {App} from 'vue'
import Loading from './index.vue'
import {createVNode,render} from "vue";

export default {
    install(app:App){
        const vNode = createVNode(Loading);
        render(vNode,document.body)
        app.config.globalProperties.$vLoading={
            show:vNode.component?.exposed?.show,
            hide:vNode.component?.exposed?.hide,
        }
        //app.config.globalProperties.$vLoading.show
        //console.log(app,1234,vNode.component?.exposed)
    }
}
